
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddSourceToVassetMediasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 修改字段先决条件,在composer.json增加composer require doctrine/dbal
        // Schema::table('vasset_medias', function (Blueprint $table) {
        //     $table->string('source')->nullable()->after('playinfo');
        // });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropColumn('source');
    }
}

